package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.SignIn;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface SignInMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SignIn record);

    SignIn selectByPrimaryKey(Long id);

    List<SignIn> selectAll();

    int updateByPrimaryKey(SignIn record);
    //根据今天的日期和用户id,判断是否已签到
    SignIn selectByIdAndDate(@Param("id") Long id, @Param("date") Date date);

    void updateIntegral(SignIn signIn);
}